package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `json:"username"`
	Password string `json:"password"`
}
type Role struct {
	gorm.Model
	RoleName string `json:"role_name"`
}
type Node struct {
	gorm.Model
	NodeName string `json:"node_name"`
}
type UserRole struct {
	gorm.Model
	Uid      int    `json:"uid"`
	RoleName string `json:"role_name"`
}
type RoleNode struct {
	gorm.Model
	Rid      int    `json:"rid"`
	NodeName string `json:"node_name"`
}
type ListUserRole struct {
	Username string
	Uid      int
	RoleName string
}
